<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
<?php
if (!empty($_FILES['file'])){
    var_dump($_FILES['file']);
}
?>
<form method="POST"
      action=""
      enctype="multipart/form-data" >
    <input type="file" name="file" />
    <input type="submit"/>
</form>

</body>
</html>